﻿package com.ease.model.system.type
{
	import com.ease.common.enums.OptionalEnum;
	import com.ease.lang.Enum;
	import com.ease.lang.EnumConstants;
	import com.ease.model.system.type.AuditLogSeverityType;

	[Bindable]
	[RemoteClass(alias="com.ease.model.system.type.AuditLogSeverityType")]

	public class AuditLogSeverityType extends Enum
	{
		/* static init */
		{ initEnum(AuditLogSeverityType); }

		/* Constants */
		public static const DEBUG:AuditLogSeverityType = new AuditLogSeverityType("DEBUG", 1, "DEBUG");
		public static const WARN:AuditLogSeverityType = new AuditLogSeverityType("WARN", 4, "WARN");
		public static const ERROR:AuditLogSeverityType = new AuditLogSeverityType("ERROR", 8, "ERROR");

		private var _value:int;
		private var _text:String;

		/*public*/ function AuditLogSeverityType(name:String=null ,value:int=0 ,text:String=null) {
			super.name = name;
			this._value = value;
			this._text = text;
		}

		public function get value():int  { return this._value; }
		public function get text():String  { return this._text; }

		/* constant query */
		public static function getEnumConstants():Array {
			return Enum.getEnumConstants(AuditLogSeverityType);
		}

		public static function get(constantName:String, caseSensitive:Boolean = false):AuditLogSeverityType {
			return AuditLogSeverityType(Enum.get(AuditLogSeverityType, constantName, caseSensitive));
		}
	}
}